﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TrainingRequest.Models.TraningsRequestsExt>" %>

<br />
<div>Участники:</div>
<div><br />
<% 
    Html.DevExpress().GridView(settings =>
                                    {
                                        settings.Name = "gdTrainingsParticipants";
                                        settings.KeyFieldName = "IdTrainingsParticipant";
                                        settings.CallbackRouteValues = new { Controller = "TC", Action = "TrainingsParticipantPartial" };
                                        settings.SettingsPager.PageSize = 20;
                                        //settings.Settings.ShowFilterRow = true;
                                        settings.SettingsEditing.Mode = GridViewEditingMode.EditFormAndDisplayRow;
                                        settings.Width = 500;
                                        settings.Columns.Add(column =>
                                        {
                                            column.Caption = "Имя";
                                            column.FieldName = "ParticipantName";
                                        });

                                        settings.Columns.Add(column =>
                                        {
                                            column.Caption = "Должность";
                                            column.FieldName = "ParticipantPosition";
                                        });

                                    }).Bind(Model.ParticipantsList).GetHtml();
%>
</div>